package cn.goktech.sports.modules.importDataone.service.impl;

import cn.goktech.sports.modules.importDataone.dao.HeadDataImportMapper;
import cn.goktech.sports.modules.importDataone.service.HeadDataImportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 〈一句话功能简述〉<br>
 * 〈头程导入数据操作〉
 *
 * @author PanY
 * @create 2019/10/29
 * @since 1.0.0
 */
@Service
public class HeadDataImportServiceImpl implements HeadDataImportService {
    @Autowired(required = false)
    HeadDataImportMapper headDataImportMapper;

    //查询中转仓库
    @Override
    public Map<String, String> queryBaseTransfer(String transfer_name) {
        return headDataImportMapper.queryBaseTransfer(transfer_name);
    }

    //添加中转仓库
    @Override
    public int addBaseTransfer(Map<String, Object> map) {
        headDataImportMapper.addBaseTransfer(map);
        return Integer.parseInt(String.valueOf(map.get("id")));
    }

    //修改中转仓库
    @Override
    public int updateBaseTransfer(Map<String, Object> map) {
        return headDataImportMapper.updateBaseTransfer(map);
    }

    //查询头程空运尺寸标准
    @Override
    public Map<String, Object> queryHeaderStand(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderStand(map);
    }

    //添加头程尺寸标准
    @Override
    public int addHeaderStand(Map<String, Object> map) {
        return headDataImportMapper.addHeaderStand(map);
    }

    //修改头程尺寸标准
    @Override
    public int updateHeaderStand(Map<String, Object> map) {
        return headDataImportMapper.updateHeaderStand(map);
    }

    @Override
    public Map<String, Object> queryHeaderStandByIdentity(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderStandByIdentity(map);
    }

    @Override
    public Map<String, Object> queryHeaderWay(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderWay(map);
    }

    @Override
    public Map<String, Object> queryHeaderLandTransport(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderLandTransport(map);
    }

    @Override
    public int addHeaderWay(Map<String, Object> map) {
        return headDataImportMapper.addHeaderWay(map);
    }

    @Override
    public int addLandCarriage(Map<String, Object> map) {
        return headDataImportMapper.addLandCarriage(map);
    }

    @Override
    public Map<String, Object> queryHeaderFuel(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderFuel(map);
    }

    @Override
    public int updateHeaderWay(Map<String, Object> map) {
        return headDataImportMapper.updateHeaderWay(map);
    }

    @Override
    public int updateLandCarriage(Map<String, Object> map) {
        return headDataImportMapper.updateLandCarriage(map);
    }

    @Override
    public List<Map<String, Object>> queryHeaderWayByServiceType(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderWayByServiceType(map);
    }

    @Override
    public Map<String, Object> queryHeaderAirWeight(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderAirWeight(map);
    }

    @Override
    public int addHeaderAirWeight(Map<String, Object> map) {
        return headDataImportMapper.addHeaderAirWeight(map);
    }

    @Override
    public int updateHeaderAirWeight(Map<String, Object> map) {
        return headDataImportMapper.updateHeaderAirWeight(map);
    }

    @Override
    public Map<String, Object> queryHeaderSea(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderSea(map);
    }

    @Override
    public int addHeaderSea(Map<String, Object> map) {
        return headDataImportMapper.addHeaderSea(map);
    }

    @Override
    public int updateHeaderSea(Map<String, Object> map) {
        return headDataImportMapper.updateHeaderSea(map);
    }

    @Override
    public List<Map<String, Object>> queryHeaderSeaByServiceType(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderSeaByServiceType(map);
    }

    @Override
    public Map<String, Object> queryShippingCharging(Map<String, Object> map) {
        return headDataImportMapper.queryShippingCharging(map);
    }

    @Override
    public int addShippingCharging(Map<String, Object> map) {
        Map<String, Object> param = new HashMap<>();
        param.put("params",map);
        return headDataImportMapper.addShippingCharging(param);
    }

    @Override
    public int updateShippingCharging(Map<String, Object> map) {
        Map<String, Object> param = new HashMap<>();
        param.put("params",map);
        return headDataImportMapper.updateShippingCharging(param);
    }

    @Override
    public Map<String, Object> queryHeaderRailway(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderRailway(map);
    }

    @Override
    public int addHeaderRailway(Map<String, Object> map) {
        return headDataImportMapper.addHeaderRailway(map);
    }

    @Override
    public int updateHeaderRailway(Map<String, Object> map) {
        return headDataImportMapper.updateHeaderRailway(map);
    }

    @Override
    public List<Map<String, Object>> queryHeaderRailwayByName(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderRailwayByName(map);
    }

    @Override
    public Map<String, Object> queryHeaderRailwaySection(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderRailwaySection(map);
    }

    @Override
    public int addHeaderRailwaySection(Map<String, Object> map) {
        Map<String, Object> param = new HashMap<>();
        param.put("params",map);
        return headDataImportMapper.addHeaderRailwaySection(param);
    }

    @Override
    public int updateHeaderRailwaySection(Map<String, Object> map) {
        Map<String, Object> param = new HashMap<>();
        param.put("params",map);
        return headDataImportMapper.updateHeaderRailwaySection(param);
    }

    @Override
    public Map<String, Object> queryHeaderLandWeight(Map<String, Object> map) {
        return headDataImportMapper.queryHeaderLandWeight(map);
    }

    @Override
    public int addHeaderLandWeight(Map<String, Object> map) {
        return headDataImportMapper.addHeaderLandWeight(map);
    }

    @Override
    public int updateHeaderLandWeight(Map<String, Object> map) {
        return headDataImportMapper.updateHeaderLandWeight(map);
    }

}
